package com.dcw.lixb.designmode.builder;

/**
 * @author lixiaobin
 * @date 2020-07-16 18:05:17
 * @desc 描述信息
 */
public class Main {
    public static void main(String[] args) {
        Meal meal = new Meal.Builder()
                .addItem(new Coke())
                .addItem(new VegBurger())
                .addItem(new VegBurger())
                .addItem(new Pepsi())
                .build();

        meal.showItems();
        System.out.println("meal cost "+meal.getCost());
    }
}
